import ajax from './ajax.js';
let baseUrl = "http://localhost:3000";
export default {
    /* 获取热门歌曲 */
    getHotsongs(){
        return ajax(baseUrl+'/top/playlist',{order:'hot'});
    },
    /* 获取日语歌单 */
    getJapaneseSongs(){
        return ajax(baseUrl+'/top/playlist',{cat:'日语'});
    },
    /* 获取推荐dj */
    getRecommendDj(){
        return ajax(baseUrl+'/personalized/djprogram');
    },
    /* 获取歌单详情 */
    getPlaylistDetail(id){
        return ajax(baseUrl+'/playlist/detail',{id});
    },
    /* 获取歌曲播放Url */
    getMusicUrl(id){
        return ajax(baseUrl+'/song/url',{id});
    },
}
